/*
 * Principal.java
 *
 * Created on 15 de Dezembro de 2007, 19:53
 */

package erreAga.view;

import erreAga.view.HoraExtra.CadastroHoraExtra;
import erreAga.view.atestadoMedico.EntradaAtestadoMedico;
import erreAga.view.funcionario.CadastroFuncionario;
import erreAga.view.funcionario.ContraCheque;
import erreAga.view.funcionario.ListagemFuncionarios;
import erreAga.view.funcionario.ListagemHoraExtra;
import erreAga.view.funcionario.PesquisaFuncionario;

/**
 *
 * @author Danilo Carlos
 */
public class Principal extends javax.swing.JFrame {

  /**
   *
   */
  private static final long serialVersionUID = -5071076685894228349L;

  /** Creates new form Principal */
  public Principal() {
    initComponents();
  }

  /**
   * This method is called from within the constructor to initialize the form.
   * WARNING: Do NOT modify this code. The content of this method is always
   * regenerated by the Form Editor.
   */
  // <editor-fold defaultstate="collapsed" desc=" C�digo Gerado
  // ">//GEN-BEGIN:initComponents
  private void initComponents() {
    jMenuBar1 = new javax.swing.JMenuBar();
    menuArquivo = new javax.swing.JMenu();
    menuFuncionario = new javax.swing.JMenu();
    cadastraFuncionario = new javax.swing.JMenuItem();
    contraCheque= new javax.swing.JMenuItem();
    cadastraHoraExtra = new javax.swing.JMenuItem();
    pesquisarFuncionario = new javax.swing.JMenuItem();
    listarFuncionarios = new javax.swing.JMenuItem();
    listarHoraExtra = new javax.swing.JMenuItem();
    menuAtestadoMedico = new javax.swing.JMenu();
    cadastrarAtestadoMedico = new javax.swing.JMenuItem();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setResizable(false);
    menuArquivo.setText("Arquivo");
    jMenuBar1.add(menuArquivo);

    menuFuncionario.setText("Funcion\u00e1rio");
    cadastraFuncionario.setText("Cadastrar");
    cadastraFuncionario.addActionListener(new java.awt.event.ActionListener() {

      public void actionPerformed(java.awt.event.ActionEvent evt) {
        cadastraFuncionarioActionPerformed(evt);
      }
    });

    menuFuncionario.add(cadastraFuncionario);




    cadastraHoraExtra.setText("Cadastrar Hora Extra");
    cadastraHoraExtra.addActionListener(new java.awt.event.ActionListener() {

      public void actionPerformed(java.awt.event.ActionEvent evt) {
        cadastraHoraExtraActionPerformed(evt);
      }
    });

    menuFuncionario.add(cadastraHoraExtra);









    pesquisarFuncionario.setText("Pesquisar");
    pesquisarFuncionario.addActionListener(new java.awt.event.ActionListener() {

      public void actionPerformed(java.awt.event.ActionEvent evt) {
        pesquisarFuncionarioActionPerformed(evt);
      }
    });

    menuFuncionario.add(pesquisarFuncionario);





    listarHoraExtra.setText("Listar Horas Extras");
    listarHoraExtra.addActionListener(new java.awt.event.ActionListener() {

      public void actionPerformed(java.awt.event.ActionEvent evt) {
        listarHoraExtraActionPerformed(evt);
      }
    });

    menuFuncionario.add(listarHoraExtra);










    contraCheque.setText("Gerar Contra Cheque");
    contraCheque.addActionListener(new java.awt.event.ActionListener() {

      public void actionPerformed(java.awt.event.ActionEvent evt) {
        contraChequeActionPerformed(evt);
      }
    });

    menuFuncionario.add(contraCheque);











    listarFuncionarios.setText("Listar Todos");
    listarFuncionarios.addActionListener(new java.awt.event.ActionListener() {

      public void actionPerformed(java.awt.event.ActionEvent evt) {
        listarFuncionariosActionPerformed(evt);
      }
    });

    menuFuncionario.add(listarFuncionarios);

    jMenuBar1.add(menuFuncionario);

    menuAtestadoMedico.setText("Atestado M\u00e9dico");
    cadastrarAtestadoMedico.setText("Cadastrar Atestado");
    cadastrarAtestadoMedico
        .addActionListener(new java.awt.event.ActionListener() {

          public void actionPerformed(java.awt.event.ActionEvent evt) {
            cadastrarAtestadoMedicoActionPerformed(evt);
          }
        });

    menuAtestadoMedico.add(cadastrarAtestadoMedico);

    jMenuBar1.add(menuAtestadoMedico);

    setJMenuBar(jMenuBar1);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
        getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(
        javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 296,
        Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(
        javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 103,
        Short.MAX_VALUE));
    pack();
  }// </editor-fold>//GEN-END:initComponents

  private void cadastrarAtestadoMedicoActionPerformed(
      java.awt.event.ActionEvent evt) {// GEN-FIRST:event_cadastrarAtestadoMedicoActionPerformed
    // TODO adicione seu c�digo de manipula��o aqui:
    java.awt.EventQueue.invokeLater(new Runnable() {

      public void run() {
        new EntradaAtestadoMedico().setVisible(true);
      }
    });
  }// GEN-LAST:event_cadastrarAtestadoMedicoActionPerformed

  private void pesquisarFuncionarioActionPerformed(
      java.awt.event.ActionEvent evt) {// GEN-FIRST:event_pesquisarFuncionarioActionPerformed
    // TODO adicione seu c�digo de manipula��o aqui:
    java.awt.EventQueue.invokeLater(new Runnable() {

      public void run() {
        new PesquisaFuncionario().setVisible(true);
      }
    });
  }// GEN-LAST:event_pesquisarFuncionarioActionPerformed


  private void cadastraHoraExtraActionPerformed(
      java.awt.event.ActionEvent evt) {// GEN-FIRST:event_pesquisarFuncionarioActionPerformed
    // TODO adicione seu c�digo de manipula��o aqui:
    java.awt.EventQueue.invokeLater(new Runnable() {

      public void run() {
        new CadastroHoraExtra().setVisible(true);
      }
    });
  }// GEN-LAST:event_pesquisarFuncionarioActionPerformed







  private void contraChequeActionPerformed(
      java.awt.event.ActionEvent evt) {// GEN-FIRST:event_pesquisarFuncionarioActionPerformed
    // TODO adicione seu c�digo de manipula��o aqui:
    java.awt.EventQueue.invokeLater(new Runnable() {

      public void run() {
        new ContraCheque().setVisible(true);
      }
    });
  }// GEN-LAST:event_pesquisarFuncionarioActionPerformed










  private void listarFuncionariosActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_listarFuncionariosActionPerformed
    // TODO adicione seu c�digo de manipula��o aqui:
    java.awt.EventQueue.invokeLater(new Runnable() {

      public void run() {
        new ListagemFuncionarios().setVisible(true);
      }
    });
  }// GEN-LAST:event_listarFuncionariosActionPerformed









  private void listarHoraExtraActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_listarFuncionariosActionPerformed
    // TODO adicione seu c�digo de manipula��o aqui:
    java.awt.EventQueue.invokeLater(new Runnable() {

      public void run() {
        new ListagemHoraExtra().setVisible(true);
      }
    });
  }// GEN-LAST:event_listarFuncionariosActionPerformed


















  private void cadastraFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_cadastraFuncionarioActionPerformed
    // TODO adicione seu c�digo de manipula��o aqui:
    java.awt.EventQueue.invokeLater(new Runnable() {

      public void run() {
        new CadastroFuncionario().setVisible(true);
      }
    });
  }// GEN-LAST:event_cadastraFuncionarioActionPerformed

  /**
   * @param args
   *          the command line arguments
   */
  public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {

      public void run() {
        new Principal().setVisible(true);
      }
    });
  }

  // Declara��o de vari�veis - n�o modifique//GEN-BEGIN:variables
  private javax.swing.JMenuItem cadastraFuncionario;
  private javax.swing.JMenuItem cadastrarAtestadoMedico;
  private javax.swing.JMenuBar jMenuBar1;
  private javax.swing.JMenuItem listarFuncionarios;
  private javax.swing.JMenuItem listarHoraExtra;
  private javax.swing.JMenu menuArquivo;
  private javax.swing.JMenu menuAtestadoMedico;
  private javax.swing.JMenu menuFuncionario;
  private javax.swing.JMenuItem pesquisarFuncionario;
  private javax.swing.JMenuItem cadastraHoraExtra;
  private javax.swing.JMenuItem contraCheque;
  // Fim da declara��o de vari�veis//GEN-END:variables

}
